import login from "./comps/login";
import register from "./comps/register";
import forget from "./comps/forget";
import changePassword from "./comps/changePassword";
import { CLIENT } from "@/common/const";
export default {
  data() {
    return {
      boxShow: false,
      type: 0,
      path: CLIENT,
      urlParams: this.$fn.getUrlParams()
    };
  },
  components: {
    login: login,
    register: register,
    forget: forget,
    changePassword:changePassword,//修改密码
  },
  mounted() {
    this.boxShow = true;
    this.type = Number(this.urlParams.type);
  },
  
  methods: {
    close() {
      this.boxShow = false;
      this.$refs.myLogin.initialize();
      this.$refs.myRegister.initialize();
      this.$refs.myForget.initialize();
      this.$refs.changePassword.initialize();
      
    },
    toggleType(num) {
      this.type = num;
    }
  }
}